package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseGps;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseGps is a Querydsl query type for EBaseGps
 */
@Label("gps信息表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseGps extends RelationalPathBase<EBaseGps> {

    private static final long serialVersionUID = 1640466256;

    public static final QBaseGps baseGps = new QBaseGps("base_gps");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseGps> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> fleetCompany = createForeignKey(fleetId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCar> _baseGpsFk = createInvForeignKey(id, "baseGps");

    }

    public final StringPath fleetId = createString("fleetId");

    public final StringPath gpsName = createString("gpsName");

    public final StringPath gpsType = createString("gpsType");

    public final StringPath id = createString("id");

    public final StringPath passWord = createString("passWord");

    public final StringPath url = createString("url");

    public final StringPath userName = createString("userName");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseGps(String variable) {
        super(EBaseGps.class, forVariable(variable), "null", "base_gps");
        addMetadata();
    }

    public QBaseGps(String variable, String schema, String table) {
        super(EBaseGps.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseGps(Path<? extends EBaseGps> path) {
        super(path.getType(), path.getMetadata(), "null", "base_gps");
        addMetadata();
    }

    public QBaseGps(PathMetadata<?> metadata) {
        super(EBaseGps.class, metadata, "null", "base_gps");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(fleetId, ColumnMetadata.named("fleet_id").withIndex(2).ofType(Types.CHAR).withSize(24));
        addMetadata(gpsName, ColumnMetadata.named("gpsName").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(gpsType, ColumnMetadata.named("gps_type").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(passWord, ColumnMetadata.named("passWord").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(url, ColumnMetadata.named("url").withIndex(4).ofType(Types.VARCHAR).withSize(500));
        addMetadata(userName, ColumnMetadata.named("userName").withIndex(6).ofType(Types.VARCHAR).withSize(45));
    }

}

